#include<iostream>

using namespace std;

int int_size_is_32(){
    int set_msb = 1 << 31;

    int beyond_msb = 1 << 16;
    beyond_msb <<= 16;

    return set_msb && !beyond_msb;
}

int int_size_is_16(){
    int set_msb = 1 << 15;

    int beyond_msb = 1 << 8;
    beyond_msb <<= 8;

    return set_msb && !beyond_msb;
}

int main(void){

    cout << int_size_is_32() << endl;
    cout << int_size_is_16() << endl;

    return 0;
}
